package com.tiyo.system.mapper.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 
 * @Description 菜单
 * @author yangb
 * @version v1.0
 * @date 2021年1月21日
*
 */
@SuppressWarnings("serial")
@TableName("sys_menu")
public class SysMenu extends Model<SysMenu> {
	/**
	 * ID
	 */
	@TableId(type=IdType.AUTO)
	private String menuId;
	/**
	 * 父级ID
	 */
	private String parentId;
	/**
	 * 菜单名称
	 */
	private String menuName;
	/**
	 * 图标
	 */
	private String icon;
	/**
	 * 权限编码
	 */
	private String perms;
	/**
	 * 菜单地址
	 */
	private String url;
	private String target;
	/**
	 * 菜单排序
	 */
	private Integer orderNum;
	 /** 类型（M目录 C菜单 F按钮） */
	private String menuType;
	@TableField(exist=false)
	private String isRefresh;
	/**
	 * 是否可编辑
	 */
	private Integer isEdit;
	/**
	 * 是否允许删除 
	 */
	private Integer isDelete;
	/**
	 * 状态 1正常 2禁用
	 */
	private Integer visible;
	/**
	 * 创建人
	 */
	private String createUserName;
	/**
	 * 创建人ID
	 */
	private String createUserId;
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;
	/**
	 * 修改人ID
	 */
	private String modifyUserId;
	/**
	 * 修改人
	 */
	private String modifyUserName;
	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date modifyTime;
	@TableField(exist=false)
	private List<SysMenu> children;
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getPerms() {
		return perms;
	}
	public void setPerms(String perms) {
		this.perms = perms;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Integer getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}
	public String getMenuType() {
		return menuType;
	}
	public void setMenuType(String menuType) {
		this.menuType = menuType;
	}
	public Integer getIsEdit() {
		return isEdit;
	}
	public void setIsEdit(Integer isEdit) {
		this.isEdit = isEdit;
	}
	public Integer getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
	
	public Integer getVisible() {
		return visible;
	}
	public void setVisible(Integer visible) {
		this.visible = visible;
	}
	public String getCreateUserName() {
		return createUserName;
	}
	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}
	public String getModifyUserId() {
		return modifyUserId;
	}
	public void setModifyUserId(String modifyUserId) {
		this.modifyUserId = modifyUserId;
	}
	public String getModifyUserName() {
		return modifyUserName;
	}
	public void setModifyUserName(String modifyUserName) {
		this.modifyUserName = modifyUserName;
	}
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getTarget() {
		return target;
	}
	public void setTarget(String target) {
		this.target = target;
	}
	public List<SysMenu> getChildren() {
		return children;
	}
	public void setChildren(List<SysMenu> children) {
		this.children = children;
	}
	public String getIsRefresh() {
		return isRefresh;
	}
	public void setIsRefresh(String isRefresh) {
		this.isRefresh = isRefresh;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	
	
}
